//
//  BigCollectionViewCell.m
//  7.13苏宁框架
//
//  Created by mini on 15/7/19.
//  Copyright (c) 2015年 lovena. All rights reserved.
//

#import "BigCollectionViewCell.h"
#import "Common.h"
#import "bigDetailModel.h"
@implementation BigCollectionViewCell

-(instancetype)init
{
    self = [super init];
    if (self) {
        self = [[[NSBundle mainBundle]loadNibNamed:@"BigCollectionViewCell" owner:nil options:nil]lastObject];
    }
    return self;
}


-(void)setModel:(bigDetailModel *)model
{
    _model = model;
    [self.picture setImageWithURL:[NSURL URLWithString:_model.icon]];
    self.name.text = _model.name;
    self.oldPrice.text = _model.oldprice;
    self.nowPrice.text = _model.price;
    self.discount.text = _model.discount;
    NSString *str = [NSString stringWithFormat:@"已购买%@件",_model.payCount];
    self.puyCount.text = str;
}
- (void)awakeFromNib {
    // Initialization code
}

@end
